<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>个人空间 - 社交平台</title>
  <!-- Bootstrap 5 CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
  
  <style>
    /* 基础样式 */
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background-color: #f5f7fa;
      color: #333;
      margin: 0;
    }
    
    /* 顶部导航 */
    .top-nav {
      height: 50px;
      background-color: #fff;
      border-bottom: 1px solid #eee;
      display: flex;
      align-items: center;
      padding: 0 15px;
      position: sticky;
      top: 0;
      z-index: 100;
    }
    
    .nav-title {
      font-size: 18px;
      font-weight: 600;
      margin: 0 auto;
    }
    
    .nav-btn {
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #666;
      text-decoration: none;
    }
    
    .nav-btn.primary {
      color: #2196f3;
    }
    
    /* 样式切换器 */
    .style-switcher {
      background-color: #fff;
      padding: 12px 15px;
      border-bottom: 1px solid #eee;
    }
    
    .style-tabs {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding-bottom: 5px;
    }
    
    .style-tabs::-webkit-scrollbar {
      display: none;
    }
    
    .style-tab {
      padding: 6px 14px;
      background-color: #f5f7fa;
      border-radius: 20px;
      font-size: 14px;
      white-space: nowrap;
      cursor: pointer;
    }
    
    .style-tab.active {
      background-color: #2196f3;
      color: white;
    }
    
    /* 通用个人主页样式 */
    .profile-page {
      display: none;
    }
    
    .profile-page.active {
      display: block;
    }
    
    /* 封面图区域 */
    .cover-container {
      height: 160px;
      position: relative;
      overflow: hidden;
    }
    
    .cover-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .cover-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 60%;
      background: linear-gradient(transparent, rgba(0,0,0,0.5));
    }
    
    /* 头像和基本信息 */
    .profile-header {
      padding: 0 15px;
      margin-top: -60px;
      position: relative;
    }
    
    .avatar-container {
      width: 120px;
      height: 120px;
      border: 4px solid #fff;
      border-radius: 50%;
      overflow: hidden;
      margin-bottom: 10px;
    }
    
    .avatar-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .profile-basic {
      margin-bottom: 15px;
    }
    
    .username {
      font-size: 22px;
      font-weight: 700;
      margin-bottom: 5px;
    }
    
    .user-bio {
      font-size: 14px;
      color: #666;
      line-height: 1.4;
      margin-bottom: 10px;
    }
    
    .profile-stats {
      display: flex;
      gap: 20px;
      margin-bottom: 15px;
    }
    
    .stat-item {
      text-align: center;
    }
    
    .stat-value {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 2px;
    }
    
    .stat-label {
      font-size: 12px;
      color: #666;
    }
    
    .profile-actions {
      display: flex;
      gap: 10px;
      margin-bottom: 15px;
    }
    
    .action-button {
      flex: 1;
      padding: 10px 0;
      border-radius: 8px;
      font-size: 15px;
      font-weight: 500;
      text-align: center;
      cursor: pointer;
      border: none;
    }
    
    .btn-primary {
      background-color: #2196f3;
      color: white;
    }
    
    .btn-secondary {
      background-color: #f5f7fa;
      color: #333;
      border: 1px solid #eee;
    }
    
    /* 导航标签 */
    .profile-tabs {
      display: flex;
      background-color: #fff;
      border-bottom: 1px solid #eee;
    }
    
    .profile-tab {
      flex: 1;
      padding: 12px 0;
      text-align: center;
      font-size: 15px;
      font-weight: 500;
      color: #666;
      border-bottom: 2px solid transparent;
    }
    
    .profile-tab.active {
      color: #2196f3;
      border-bottom-color: #2196f3;
    }
    
    /* 内容区域 */
    .profile-content {
      padding-bottom: 20px;
    }
    
    .content-section {
      display: none;
    }
    
    .content-section.active {
      display: block;
    }
    
    /* 作品网格 */
    .posts-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2px;
    }
    
    .post-item {
      aspect-ratio: 1;
      overflow: hidden;
      position: relative;
    }
    
    .post-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .post-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: rgba(0,0,0,0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.3s;
    }
    
    .post-item:hover .post-overlay {
      opacity: 1;
    }
    
    .post-stats {
      display: flex;
      gap: 15px;
      color: white;
      font-size: 14px;
    }
    
    .post-stat {
      display: flex;
      align-items: center;
    }
    
    .post-stat i {
      margin-right: 5px;
      font-size: 12px;
    }
    
    /* 相册列表 */
    .albums-list {
      padding: 10px;
    }
    
    .album-item {
      display: flex;
      gap: 10px;
      background-color: #fff;
      border-radius: 8px;
      padding: 10px;
      margin-bottom: 10px;
    }
    
    .album-cover {
      width: 80px;
      height: 80px;
      border-radius: 4px;
      overflow: hidden;
      flex-shrink: 0;
    }
    
    .album-cover img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .album-info {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    
    .album-title {
      font-weight: 500;
      margin-bottom: 5px;
    }
    
    .album-meta {
      font-size: 12px;
      color: #666;
    }
    
    /* 样式1 - 标准布局 */
    .standard-profile .profile-content {
      margin-top: 10px;
    }
    
    .standard-profile .posts-grid {
      background-color: #fff;
      padding-top: 2px;
    }
    
    /* 样式2 - 简约布局 */
    .simple-profile .cover-container {
      height: 120px;
    }
    
    .simple-profile .avatar-container {
      width: 100px;
      height: 100px;
    }
    
    .simple-profile .profile-basic {
      text-align: center;
      padding: 0 20px;
    }
    
    .simple-profile .profile-stats {
      justify-content: center;
    }
    
    .simple-profile .profile-actions {
      padding: 0 20px;
    }
    
    .simple-profile .posts-grid {
      margin-top: 10px;
    }
    
    /* 样式3 - 突出风格 */
    .modern-profile {
      background-color: #121212;
      color: #fff;
    }
    
    .modern-profile .top-nav,
    .modern-profile .style-switcher,
    .modern-profile .profile-tabs {
      background-color: #1e1e1e;
      border-color: #2d2d2d;
      color: #aaa;
    }
    
    .modern-profile .profile-tab.active {
      color: #2196f3;
    }
    
    .modern-profile .btn-secondary {
      background-color: #2d2d2d;
      color: #fff;
      border-color: #3d3d3d;
    }
    
    .modern-profile .user-bio,
    .modern-profile .stat-label,
    .modern-profile .album-meta {
      color: #aaa;
    }
    
    .modern-profile .album-item {
      background-color: #1e1e1e;
    }
    
    /* 样式4 - 卡片式布局 */
    .card-profile .profile-header {
      background-color: #fff;
      border-radius: 16px;
      padding: 20px 15px 15px;
      margin: -60px 15px 15px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }
    
    .card-profile .profile-tabs {
      background-color: transparent;
      margin: 0 15px;
      border-bottom: none;
    }
    
    .card-profile .profile-tab {
      background-color: #f5f7fa;
      margin: 0 5px;
      border-radius: 8px;
    }
    
    .card-profile .profile-tab.active {
      background-color: #2196f3;
      color: white;
      border-bottom: none;
    }
    
    .card-profile .posts-grid {
      margin: 15px;
      border-radius: 16px;
      overflow: hidden;
    }
    
    /* 提示框 */
    .toast {
      position: fixed;
      bottom: 80px;
      left: 50%;
      transform: translateX(-50%);
      background-color: rgba(0,0,0,0.8);
      color: white;
      border-radius: 8px;
      padding: 10px 15px;
      font-size: 14px;
      z-index: 1000;
      display: none;
    }
  </style>
</head>
<body>
  <!-- 提示框 -->
  <div class="toast" id="toast"></div>
  
  <!-- 顶部导航 -->
  <nav class="top-nav">
    <a href="#" class="nav-btn" id="backBtn">
      <i class="fa fa-angle-left"></i>
    </a>
    <h1 class="nav-title">个人空间</h1>
    <a href="#" class="nav-btn primary" id="settingsBtn">
      <i class="fa fa-cog"></i>
    </a>
  </nav>
  
  <!-- 样式切换器 -->
  <div class="style-switcher">
    <div class="style-tabs">
      <div class="style-tab active" data-style="standard">标准布局</div>
      <div class="style-tab" data-style="simple">简约布局</div>
      <div class="style-tab" data-style="modern">现代风格</div>
      <div class="style-tab" data-style="card">卡片式布局</div>
    </div>
  </div>
  
  <!-- 样式1 - 标准布局 -->
  <div class="profile-page active standard-profile" id="standard">
    <!-- 封面图 -->
    <div class="cover-container">
      <img src="https://picsum.photos/id/1015/1000/500" alt="封面图" class="cover-image">
      <div class="cover-overlay"></div>
    </div>
    
    <!-- 个人信息 -->
    <div class="profile-header">
      <div class="avatar-container">
        <img src="https://picsum.photos/id/1005/200/200" alt="头像" class="avatar-image">
      </div>
      
      <div class="profile-basic">
        <div class="username">旅行摄影师</div>
        <div class="user-bio">
          用镜头记录世界的美好，分享旅途中的精彩瞬间。<br>
          合作邮箱：contact@example.com
        </div>
        
        <div class="profile-stats">
          <div class="stat-item">
            <div class="stat-value">128</div>
            <div class="stat-label">作品</div>
          </div>
          <div class="stat-item">
            <div class="stat-value">3.2k</div>
            <div class="stat-label">粉丝</div>
          </div>
          <div class="stat-item">
            <div class="stat-value">256</div>
            <div class="stat-label">关注</div>
          </div>
        </div>
        
        <div class="profile-actions">
          <button class="action-button btn-primary" onclick="showToast('已关注该用户')">关注</button>
          <button class="action-button btn-secondary" onclick="showToast('发送消息')">发消息</button>
        </div>
      </div>
    </div>
    
    <!-- 内容导航 -->
    <div class="profile-tabs">
      <div class="profile-tab active" data-content="posts">作品</div>
      <div class="profile-tab" data-content="albums">相册</div>
      <div class="profile-tab" data-content="about">关于</div>
    </div>
    
    <!-- 内容区域 -->
    <div class="profile-content">
      <!-- 作品列表 -->
      <div class="content-section active" id="posts">
        <div class="posts-grid">
          <div class="post-item">
            <img src="https://picsum.photos/id/10/300/300" alt="作品" class="post-image">
            <div class="post-overlay">
              <div class="post-stats">
                <div class="post-stat"><i class="fa fa-heart"></i> 243</div>
                <div class="post-stat"><i class="fa fa-comment"></i> 12</div>
              </div>
            </div>
          </div>
          <div class="post-item">
            <img src="https://picsum.photos/id/15/300/300" alt="作品" class="post-image">
            <div class="post-overlay">
              <div class="post-stats">
                <div class="post-stat"><i class="fa fa-heart"></i> 187</div>
                <div class="post-stat"><i class="fa fa-comment"></i> 8</div>
              </div>
            </div>
          </div>
          <div class="post-item">
            <img src="https://picsum.photos/id/28/300/300" alt="作品" class="post-image">
            <div class="post-overlay">
              <div class="post-stats">
                <div class="post-stat"><i class="fa fa-heart"></i> 326</div>
                <div class="post-stat"><i class="fa fa-comment"></i> 24</div>
              </div>
            </div>
          </div>
          <div class="post-item">
            <img src="https://picsum.photos/id/42/300/300" alt="作品" class="post-image">
            <div class="post-overlay">
              <div class="post-stats">
                <div class="post-stat"><i class="fa fa-heart"></i> 156</div>
                <div class="post-stat"><i class="fa fa-comment"></i> 6</div>
              </div>
            </div>
          </div>
          <div class="post-item">
            <img src="https://picsum.photos/id/65/300/300" alt="作品" class="post-image">
            <div class="post-overlay">
              <div class="post-stats">
                <div class="post-stat"><i class="fa fa-heart"></i> 203</div>
                <div class="post-stat"><i class="fa fa-comment"></i> 15</div>
              </div>
            </div>
          </div>
          <div class="post-item">
            <img src="https://picsum.photos/id/76/300/300" alt="作品" class="post-image">
            <div class="post-overlay">
              <div class="post-stats">
                <div class="post-stat"><i class="fa fa-heart"></i> 278</div>
                <div class="post-stat"><i class="fa fa-comment"></i> 19</div>
              </div>
            </div>
          </div>
          <div class="post-item">
            <img src="https://picsum.photos/id/87/300/300" alt="作品" class="post-image">
            <div class="post-overlay">
              <div class="post-stats">
                <div class="post-stat"><i class="fa fa-heart"></i> 145</div>
                <div class="post-stat"><i class="fa fa-comment"></i> 7</div>
              </div>
            </div>
          </div>
          <div class="post-item">
            <img src="https://picsum.photos/id/96/300/300" alt="作品" class="post-image">
            <div class="post-overlay">
              <div class="post-stats">
                <div class="post-stat"><i class="fa fa-heart"></i> 312</div>
                <div class="post-stat"><i class="fa fa-comment"></i> 21</div>
              </div>
            </div>
          </div>
          <div class="post-item">
            <img src="https://picsum.photos/id/29/300/300" alt="作品" class="post-image">
            <div class="post-overlay">
              <div class="post-stats">
                <div class="post-stat"><i class="fa fa-heart"></i> 189</div>
                <div class="post-stat"><i class="fa fa-comment"></i> 10</div>
              </div>
            </div>
          </div>
        </div>
      </div>
      
      <!-- 相册列表 -->
      <div class="content-section" id="albums">
        <div class="albums-list">
          <div class="album-item">
            <div class="album-cover">
              <img src="https://picsum.photos/id/10/200/200" alt="相册封面">
            </div>
            <div class="album-info">
              <div class="album-title">夏日海边旅行</div>
              <div class="album-meta">12张照片 · 2023-07-15</div>
            </div>
          </div>
          <div class="album-item">
            <div class="album-cover">
              <img src="https://picsum.photos/id/28/200/200" alt="相册封面">
            </div>
            <div class="album-info">
              <div class="album-title">山间日出摄影集</div>
              <div class="album-meta">8张照片 · 2023-06-20</div>
            </div>
          </div>
          <div class="album-item">
            <div class="album-cover">
              <img src="https://picsum.photos/id/42/200/200" alt="相册封面">
            </div>
            <div class="album-info">
              <div class="album-title">城市建筑风光</div>
              <div class="album-meta">15张照片 · 2023-05-10</div>
            </div>
          </div>
          <div class="album-item">
            <div class="album-cover">
              <img src="https://picsum.photos/id/65/200/200" alt="相册封面">
            </div>
            <div class="album-info">
              <div class="album-title">乡村田野采风</div>
              <div class="album-meta">10张照片 · 2023-04-05</div>
            </div>
          </div>
        </div>
      </div>
      
      <!-- 关于页面 -->
      <div class="content-section" id="about">
        <div class="albums-list">
          <div class="album-item">
            <div class="album-info">
              <div class="album-title">基本信息</div>
              <div class="album-meta">
                职业：自由摄影师<br>
                所在地：上海<br>
                加入时间：2020-03-15
              </div>
            </div>
          </div>
          <div class="album-item">
            <div class="album-info">
              <div class="album-title">个人简介</div>
              <div class="album-meta">
                毕业于上海摄影艺术学院，专注旅行摄影10年，<br>
                曾获全国风光摄影大赛金奖，<br>
                出版《光影旅行》摄影集。
              </div>
            </div>
          </div>
          <div class="album-item">
            <div class="album-info">
              <div class="album-title">联系方式</div>
              <div class="album-meta">
                邮箱：contact@example.com<br>
                微信：travelphoto<br>
                网站：www.example.com
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  
  <!-- 样式2 - 简约布局 -->
  <div class="profile-page simple-profile" id="simple">
    <!-- 封面图 -->
    <div class="cover-container">
      <img src="https://picsum.photos/id/1015/1000/500" alt="封面图" class="cover-image">
      <div class="cover-overlay"></div>
    </div>
    
    <!-- 个人信息 -->
    <div class="profile-header">
      <div class="avatar-container" style="margin: 0 auto;">
        <img src="https://picsum.photos/id/1005/200/200" alt="头像" class="avatar-image">
      </div>
      
      <div class="profile-basic">
        <div class="username">旅行摄影师</div>
        <div class="user-bio">
          用镜头记录世界的美好，分享旅途中的精彩瞬间。
        </div>
        
        <div class="profile-stats">
          <div class="stat-item">
            <div class="stat-value">128</div>
            <div class="stat-label">作品</div>
          </div>
          <div class="stat-item">
            <div class="stat-value">3.2k</div>
            <div class="stat-label">粉丝</div>
          </div>
          <div class="stat-item">
            <div class="stat-value">256</div>
            <div class="stat-label">关注</div>
          </div>
        </div>
        
        <div class="profile-actions">
          <button class="action-button btn-primary" onclick="showToast('已关注该用户')">关注</button>
          <button class="action-button btn-secondary" onclick="showToast('发消息')">发消息</button>
        </div>
      </div>
    </div>
    
    <!-- 内容导航 -->
    <div class="profile-tabs">
      <div class="profile-tab active" data-content="posts-simple">作品</div>
      <div class="profile-tab" data-content="albums-simple">相册</div>
      <div class="profile-tab" data-content="about-simple">关于</div>
    </div>
    
    <!-- 内容区域 -->
    <div class="profile-content">
      <!-- 作品列表 -->
      <div class="content-section active" id="posts-simple">
        <div class="posts-grid">
          <div class="post-item">
            <img src="https://picsum.photos/id/10/300/300" alt="作品" class="post-image">
          </div>
          <div class="post-item">
            <img src="https://picsum.photos/id/15/300/300" alt="作品" class="post-image">
          </div>
          <div class="post-item">
            <img src="https://picsum.photos/id/28/300/300" alt="作品" class="post-image">
          </div>
          <div class="post-item">
            <img src="https://picsum.photos/id/42/300/300" alt="作品" class="post-image">
          </div>
          <div class="post-item">
            <img src="https://picsum.photos/id/65/300/300" alt="作品" class="post-image">
          </div>
          <div class="post-item">
            <img src="https://picsum.photos/id/76/300/300" alt="作品" class="post-image">
          </div>
          <div class="post-item">
            <img src="https://picsum.photos/id/87/300/300" alt="作品" class="post-image">
          </div>
          <div class="post-item">
            <img src="https://picsum.photos/id/96/300/300" alt="作品" class="post-image">
          </div>
          <div class="post-item">
            <img src="https://picsum.photos/id/29/300/300" alt="作品" class="post-image">
          </div>
        </div>
      </div>
      
      <!-- 相册列表和关于页面结构与标准布局类似，省略重复代码 -->
      <div class="content-section" id="albums-simple">
        <div class="albums-list">
          <!-- 与标准布局相同的相册内容 -->
          <div class="album-item">
            <div class="album-cover">
              <img src="https://picsum.photos/id/10/200/200" alt="相册封面">
            </div>
            <div class="album-info">
              <div class="album-title">夏日海边旅行</div>
              <div class="album-meta">12张照片 · 2023-07-15</div>
            </div>
          </div>
          <!-- 更多相册... -->
        </div>
      </div>
      
      <div class="content-section" id="about-simple">
        <!-- 与标准布局相同的关于内容 -->
        <div class="albums-list">
          <div class="album-item">
            <div class="album-info">
              <div class="album-title">基本信息</div>
              <div class="album-meta">
                职业：自由摄影师<br>
                所在地：上海<br>
                加入时间：2020-03-15
              </div>
            </div>
          </div>
          <!-- 更多关于内容... -->
        </div>
      </div>
    </div>
  </div>
  
  <!-- 样式3 - 现代风格 -->
  <div class="profile-page modern-profile" id="modern">
    <!-- 封面图 -->
    <div class="cover-container">
      <img src="https://picsum.photos/id/1015/1000/500" alt="封面图" class="cover-image">
      <div class="cover-overlay"></div>
    </div>
    
    <!-- 个人信息 -->
    <div class="profile-header">
      <div class="avatar-container">
        <img src="https://picsum.photos/id/1005/200/200" alt="头像" class="avatar-image">
      </div>
      
      <div class="profile-basic">
        <div class="username">旅行摄影师</div>
        <div class="user-bio">
          用镜头记录世界的美好，分享旅途中的精彩瞬间。<br>
          合作邮箱：contact@example.com
        </div>
        
        <div class="profile-stats">
          <div class="stat-item">
            <div class="stat-value">128</div>
            <div class="stat-label">作品</div>
          </div>
          <div class="stat-item">
            <div class="stat-value">3.2k</div>
            <div class="stat-label">粉丝</div>
          </div>
          <div class="stat-item">
            <div class="stat-value">256</div>
            <div class="stat-label">关注</div>
          </div>
        </div>
        
        <div class="profile-actions">
          <button class="action-button btn-primary" onclick="showToast('已关注该用户')">关注</button>
          <button class="action-button btn-secondary" onclick="showToast('发消息')">发消息</button>
        </div>
      </div>
    </div>
    
    <!-- 内容导航和内容区域结构与标准布局类似，省略重复代码 -->
    <div class="profile-tabs">
      <div class="profile-tab active" data-content="posts-modern">作品</div>
      <div class="profile-tab" data-content="albums-modern">相册</div>
      <div class="profile-tab" data-content="about-modern">关于</div>
    </div>
    
    <div class="profile-content">
      <div class="content-section active" id="posts-modern">
        <!-- 与标准布局相同的作品内容 -->
        <div class="posts-grid">
          <!-- 作品图片网格 -->
        </div>
      </div>
      
      <div class="content-section" id="albums-modern">
        <!-- 与标准布局相同的相册内容 -->
      </div>
      
      <div class="content-section" id="about-modern">
        <!-- 与标准布局相同的关于内容 -->
      </div>
    </div>
  </div>
  
  <!-- 样式4 - 卡片布局 -->
  <div class="profile-page card-profile" id="card">
    <!-- 封面图 -->
    <div class="cover-container">
      <img src="https://picsum.photos/id/1015/1000/500" alt="封面图" class="cover-image">
      <div class="cover-overlay"></div>
    </div>
    
    <!-- 个人信息 -->
    <div class="profile-header">
      <div class="avatar-container">
        <img src="https://picsum.photos/id/1005/200/200" alt="头像" class="avatar-image">
      </div>
      
      <div class="profile-basic">
        <div class="username">旅行摄影师</div>
        <div class="user-bio">
          用镜头记录世界的美好，分享旅途中的精彩瞬间。
        </div>
        
        <div class="profile-stats">
          <div class="stat-item">
            <div class="stat-value">128</div>
            <div class="stat-label">作品</div>
          </div>
          <div class="stat-item">
            <div class="stat-value">3.2k</div>
            <div class="stat-label">粉丝</div>
          </div>
          <div class="stat-item">
            <div class="stat-value">256</div>
            <div class="stat-label">关注</div>
          </div>
        </div>
        
        <div class="profile-actions">
          <button class="action-button btn-primary" onclick="showToast('已关注该用户')">关注</button>
          <button class="action-button btn-secondary" onclick="showToast('发消息')">发消息</button>
        </div>
      </div>
    </div>
    
    <!-- 内容导航和内容区域结构与标准布局类似，省略代码 -->
    <div class="profile-tabs">
      <div class="profile-tab active" data-content="posts-card">作品</div>
      <div class="profile-tab" data-content="albums-card">相册</div>
      <div class="profile-tab" data-content="about-card">关于</div>
    </div>
    
    <div class="profile-content">
      <div class="content-section active" id="posts-card">
        <!-- 与标准布局相同的作品内容 -->
        <div class="posts-grid">
          <!-- 作品图片网格 -->
        </div>
      </div>
      
      <div class="content-section" id="albums-card">
        <!-- 与标准布局相同的相册内容 -->
      </div>
      
      <div class="content-section" id="about-card">
        <!-- 与标准布局相同的关于内容 -->
      </div>
    </div>
  </div>
  
  <!-- Bootstrap JS -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
  
  <script>
    // 获取元素
    const styleTabs = document.querySelectorAll('.style-tab');
    const profilePages = document.querySelectorAll('.profile-page');
    const backBtn = document.getElementById('backBtn');
    const settingsBtn = document.getElementById('settingsBtn');
    const toast = document.getElementById('toast');
    
    // 样式切换
    styleTabs.forEach(tab => {
      tab.addEventListener('click', function() {
        // 移除所有激活状态
        styleTabs.forEach(t => t.classList.remove('active'));
        profilePages.forEach(page => page.classList.remove('active'));
        
        // 设置当前激活状态
        this.classList.add('active');
        const style = this.getAttribute('data-style');
        document.getElementById(style).classList.add('active');
        
        showToast(`已切换到${this.textContent}`);
      });
    });
    
    // 内容标签切换
    document.querySelectorAll('.profile-tab').forEach(tab => {
      tab.addEventListener('click', function() {
        // 获取所在的页面
        const profilePage = this.closest('.profile-page');
        
        // 移除当前页面所有标签的激活状态
        profilePage.querySelectorAll('.profile-tab').forEach(t => t.classList.remove('active'));
        profilePage.querySelectorAll('.content-section').forEach(s => s.classList.remove('active'));
        
        // 设置当前标签和内容为激活状态
        this.classList.add('active');
        const contentId = this.getAttribute('data-content');
        profilePage.getElementById(contentId).classList.add('active');
      });
    });
    
    // 返回按钮
    backBtn.addEventListener('click', function() {
      showToast('返回上一页');
    });
    
    // 设置按钮
    settingsBtn.addEventListener('click', function() {
      showToast('打开设置页面');
    });
    
    // 显示提示
    function showToast(message) {
      toast.textContent = message;
      toast.style.display = 'block';
      
      setTimeout(() => {
        toast.style.opacity = '0';
        setTimeout(() => {
          toast.style.display = 'none';
          toast.style.opacity = '1';
        }, 300);
      }, 2000);
    }
  </script>
</body>
</html>
